package com.lagou.edu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @author 陶肖寅
 * @version V1.0
 * @Package com.lagou.edu
 * @email fromlx@126.com
 * @date 2020-03-11 22:26
 * @Copyright © 2020-2021 城云科技(中国)有限公司
 */
@SpringBootApplication
@ServletComponentScan
@EnableRedisHttpSession
public class Stage2Model2Application extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(Stage2Model2Application.class);
    }

    public static void main(String[] args) {

        SpringApplication.run(Stage2Model2Application.class, args);
    }

}
